{% load ajax %}
{% load reputation_access_control %}

{% if islogged %}
	{% ifequal vote_class "standard" %}
    	{% check_reputation user_reputation vote_up django_multivoting/elements/vote_up.html %}
    {% else %}
    	{% check_reputation user_reputation vote_up django_multivoting/elements/vote_up_compact.html %}
    {% endifequal %}
    {% include "django_multivoting/elements/popularity.html" %}
    {% ifequal vote_class "standard" %}
    	{% check_reputation user_reputation vote_down django_multivoting/elements/vote_down.html %}
    {% else %}
    	{% check_reputation user_reputation vote_down django_multivoting/elements/vote_down_compact.html %}
    {% endifequal %}
{% else %}
	{% ifequal vote_class "standard" %}
   	 	{% include "django_multivoting/elements/vote_up_nouser.html" %}
   	{% else %}
   		{% include "django_multivoting/elements/vote_up_compact_nouser.html" %}
   	{% endifequal %}
    {% include "django_multivoting/elements/popularity.html" %}
    {% ifequal vote_class "standard" %}
    	{% include "django_multivoting/elements/vote_down_nouser.html" %}
    {% else %}
    	{% include "django_multivoting/elements/vote_down_compact_nouser.html" %}
    {% endifequal %}
{% endif %}